﻿@model Project.WebUI.Models.DepositModel
@using Framework.Util.Helpers
@using Project.Resource.User
@{
    ViewBag.Title = "Deposit";
}
@{
    var culture = "";
    if (Session["Culture"] != null && Session["Culture"].ToString().Equals("vi-VN"))
    {
        culture = "vi-VN";
    }
    var status = "0";
    if (ViewBag.success == "1")
    {
        status = "1";
    }
}

<script type="text/javascript">
    if("@status"=="1") {
        var id = "withdraw_successvi-VN";
            popupSite(id);
    }
</script>

<section class="container clearfix">
    <div class="head_table">
        <div class="head_title_table">
            Profile Detail            
        </div>
    </div>
    <div id="content" style="margin-top: 10px;">
        <table width="100%">
            <tr>
                <td width="237" valign="top">
                    <div class="left_content">
                        @Html.Partial("_MenuProfile")
                    </div>
                </td>
                <td valign="top">
                    <div class="right_content">    
                        <div id="indexView" class="table">
                            <div class="head_table">
                                <div class="head_title_table" id="deposit_tile">Deposit</div>
                            </div>
                            <div class="clearAll"></div>
                            <form action="https://sci.libertyreserve.com" id="formDeposit">
                               @Html.AntiForgeryToken() 
                                <div class="content_table" style="margin-top: 10px;">
                                    <input name="lr_acc" value="@ViewBag.Payto" type="hidden" />
                                    <input name="lr_acc_from" value="@ViewBag.PayFrom" type="hidden" />
                                    <input name="lr_currency" value="LRUSD" type="hidden" />
                                    <input name="lr_comments" value="gamebetplus.com - Deposit" type="hidden" />
                                    <input name="lr_success_url" value="http://gamebetplus.com/User/Deposit" type="hidden" />
                                    <input name="lr_success_url_method" value="POST" type="hidden" />
                                    <input name="lr_fail_url" value="http://gamebetplus.com/User/Deposit" type="hidden" />
                                    <input name="lr_fail_url_method" value="POST" type="hidden" />
                                    <input name="lr_store" value="@ViewBag.StoreName" type="hidden" />
                                    <input name="lr_status_url" value="http://gamebetplus.com/user/process" type="hidden" />
                                    <input name="lr_status_url_method" value="POST" type="hidden" />
                                    <table cellspacing="0" cellpadding="0" border="0" width="100%">
                                        <tr class="row1">
                                            <td class="th_left" style="width: 114px;">@DepositResource.lblAmount
                                            </td>
                                            <td class="th_left">
                                                @Html.TextBoxFor(m => m.lr_amnt, new { @class = "cf_input" })
                                                @Html.ValidationMessageFor(m => m.lr_amnt)
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                                <div class="footer_table">
                                    <div class="item_per_page" style="margin: 0 !important;">
                                        <div onclick="return $('#formDeposit').submit();" class="btSubmit"></div>
                                    </div>
                                </div>
                            </form>
                        </div>                     
                        <div class="clearAll"></div>                                   
                            @Html.Partial("_HeaderHistory")
                            <script type="text/javascript">
                                var root = '@Request.ApplicationPath';
                                $(document).ready(function () {
                                    LoadAjax(root, 'AjaxDeposit', 1);
                                    $('.item').removeClass('active');
                                    $('#deposit_content').addClass('active');
                                });
                            </script>                                                                       
                        <div class="clearAll"></div>                       
                    </div>
                </td>
            </tr>
        </table>
    </div>
    <div class="clear padding40"></div>
</section>